{include file="$temps.head" title="$webs.title" keywords="$webs.keywords" description="$webs.description" /}
<ul class="layout fex-column">
    <li class="pad-a10 b-b bg-fff mb-10 addrestext cx-fex-c">
        <div class="x11 fex-column">
            <div class="layout cx-fex">
                <span>收货人：{$order.conf.adduname}</span>
                <span>手机：{$order.conf.phone}</span>
            </div>
            <div class="layout">地址：{$order.conf.addres}</div>
        </div>
    </li>
    <li class="layout cx-fex-c bg-fff pad-t15">
        {volist name="order.conf.shop" id="cx" empty="" key="k"}
        <a class="x11 cx-fex-l user-dd-a mb-15" href="{:url('Article/index',array('aid'=>$cx.aid))}">
            <div class="xl3">
                <div class="or-tuan-img">
                    <img class="img-responsive" src="{$cx.picurl}" alt="{$cx.title}" >
                </div>
            </div>
            <div class="xl9 pad-l10 cx-fex fex-column">
                <h3 class="or-title">{$cx.title}</h3>
                <div class="layout cx-fex-l">
                    <div class="t-gray">数量:{$cx.num}</div>
                </div>
            </div>
        </a>
        {/volist}
        <div class="x11 cx-fex-c t-12 t-gray pad-t15 pad-b15" style="border-top:1px solid #dfdfdf">
            <div class="layout cx-fex">
                <span>订单金额</span>
                <span>{:number_format($order['allmoney'] / 100,'2')} 元</span>
            </div>
            <div class="layout cx-fex">
                <span>抵扣</span>
                <span>{:number_format(($order['allmoney'] - $order['pricemoney']) / 100,'2')} 元</span>
            </div>
            <div class="layout cx-fex">
                <span>实付金额</span>
                <span class="t-14 t-red">{:number_format($order['pricemoney'] / 100,'2')} 元</span>
            </div>
        </div>
    </li>
    <li class="layout bg-fff cx-fex-c mt-15" style="line-height: 32px; padding: 10px 0">
        <div class="x11 cx-fex t-gray">
            <span>订单编号</span>
            <span class="t-14">{$order.oid}</span>
        </div>
        <div class="x11 cx-fex t-gray">
            <span>下单时间</span>
            <span class="t-14">{$order.addtime|date="Y-m-d h:i:d",###}</span>
        </div>
        {neq name="$order.playtime" value="0"}
        <div class="x11 cx-fex t-gray">
            <span>付款时间</span>
            <span class="t-14">{$order.playtime|date="Y-m-d h:i:d",###}</span>
        </div>
        {/neq}
        <div class="x11 cx-fex fex-column t-gray">
            <span class="layout">我的留言</span>
            <span class="layout">{$order.message|default=""}</span>
        </div>
        {present name="$order.kdcode"}
        <div class="x11 cx-fex t-gray">
            <span>快递公司</span>
            <span class="t-14">{$order.kdname}</span>
        </div>
        <div class="x11 cx-fex t-gray">
            <span>快递单号</span>
            <span class="t-14">{$order.kdcode}</span>
        </div>
        {/present}
        <div class="x11 cx-fex-c" style="border-top: 1px solid #dfdfdf; padding-top: 15px">
            {switch name="$order.playstatus" }
            {case value="1"}
            <a class="button button-S bg-blue">等待发货</a>
            {/case}
            {case value="2"}
            <a class="button button-S bg-gray mr-10 cx-click" data-type="kuaidi" data-kdname="{$order.kdname|default=''}" data-kdcode="{$order.kdcode|default=''}">物流查询</a>
            <a class="button button-S bg-red cx-click" data-type="shouhuo" data-oid="{$order.oid}">确认收货</a>
            {/case}
            {case value="3"}
            <a class="button button-S">已退款</a>
            {/case}
            {case value="5"}
            {lt name="$thistime-$order.addtime" value="2592000"}
            <a class="button button-S bg-gray mr-10" href="{:url('Order/tuikuan',array('oid'=>$order.oid))}">申请退款</a>
            {/lt}
            {eq name="$order.comment" value="0"}
            <a class="button button-S bg-red" href="{:url('Order/get_ping',array('oid'=>$order.oid))}">评价</a>
            {else /}
            <a class="button button-S bg-red">已评价</a>
            {/eq}
            {/case}
            {case value="6"}
            <a class="button button-S bg-gray" href="{:url('Order/tuikuan',array('oid'=>$order.oid))}">处理中</a>
            {/case}
            {default /}
            {gt name="$thistime-$order.addtime" value="26400"}
            <a class="button button-S">订单已关闭</a>
            {else /}
            <a class="button button-S bg-green" href="{:url('Order/gouwuche',array('oid'=>$order.oid))}">去付款</a>
            {/gt}
            {/switch}
        </div>
    </li>

</ul>
<div style="width: 100%;height: 80px;"></div>
{include file="$temps.foot" /}
<div id="kuaidicha" style="display: none;"></div>